package com.ebook.database.dao;

import com.ebook.entity.BookReadData;
import lombok.Data;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("readData")
public interface BookReadDataDao {
    BookReadData selectDataByUserIdAndBookId(Integer userId,Integer bookId);
    List<BookReadData> selectDataByUserId(Integer userId);
    Integer selectDataCountByUserId(Integer userId);
}
